<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title th:text="${title}">Title</title>
<style type="text/css">
	@media print {   
		.noprint {    
		display: none    
		}   
	}   
	body{
		font-size: 12px;
	}
	table{
		border-collapse: collapse;
		width: 730px;
		table-layout:fixed;
	}
	table td{
		border:solid 1px #999;
		padding:5px;
		word-break:break-all;
	}
	table caption{
		font-size:18pt;
		font-weight: bold;
		padding:15px 0;
	}
		.page{
  			page-break-after: always;
  		}
  		.whole{
  			page-break-inside: avoid;
  		}
</style>
<script src="/common/js/jquery/jquery.min.js"></script>
	<script src="/common/js/barcode/JsBarcode.js"></script>
	<script src="/common/js/barcode/CODE128.js"></script>
</head>
<body>
<p class="noprint" style="text-align: center;width: 730px;">
	<button th:if="${#lists.size(students) > 0}" onclick="window.print()">打印</button>
	<span th:if="${#lists.size(students) == 0}" >没有报名数据</span>
</p>
<table th:each="student:${students}" class="page">
    <caption class="bg-white text-center font-bold">2016年湖北省普通高考考生报名信息核对表</caption>
    <tbody>
    	<tr>
    		<td colspan="3" style="border-width:0">
    			<img th:id="${'bc'+student.id}"/>
					<script th:inline="javascript">
					/*<![CDATA[*/
					    var bcid = /*[[${'#bc'+student.id}]]*/;
						$(bcid).JsBarcode(/*[[${student.examId}]]*/,{displayValue:true,width:1,height:25});
					/*]]>*/
					</script>
    		</td>
    		<td style="border-width:0" colspan="2" >考试类型：<span th:text="${student.examType.name}"></span></td>
    		<td style="border-width:0" colspan="2">科类：<span th:text="${student.subject.name}"></span></td>
    	</tr>
    </tbody>
    <tbody th:if="${student.subjectType == 'ART' and !student.arts[0].isEnabled}">
        <tr >
            <td colspan="3" class="font-bold">艺术类统考</td>
            <td th:each="item:${student.arts}" th:if="${item.id != 9}">
                <span th:if="${item.isEnabled}" th:text="${item.name}" ></span>
            </td>
        </tr>
        <tr th:if="${student.arts[4].isEnabled == true}">
            <td colspan="3" class="font-bold">戏剧与影视学类专业方向</td>
            <td th:each="d:${student.arts[4].directs}">
                <span th:if="${d.isEnabled}" th:text="${d.name}" ></span>
            </td>
        </tr>
    </tbody>
    <tbody th:if="${student.subjectType == 'ART' and student.arts[0].isEnabled}">
    	<tr>
    		<td class="font-bold">艺术类统考</td>
    		<td colspan="6">不报考</td>
    	</tr>
    </tbody>
    <tbody>
        <tr th:if="${student.subjectType == 'SPORT'}">
            <td colspan="2" class="font-bold">体育专业素质测试</td>
            <td>
            	<span th:if="${student.sportSigned == 2}">不报考</span>
            	<span th:if="${student.sportSigned == 1}">报考</span>
            </td>
            <td class="font-bold">测试项目</td>
            <td colspan="3" >
            	<span th:if="${student.sportSigned == 1}" th:text="${student.sport.name}"></span>
            </td>
        </tr>
        <tr>
            <td class="font-bold" >报名号</td>
            <td colspan="2" th:text="${student.examId}"></td>
            <td class="font-bold">姓名</td>
            <td colspan="2" th:text="${student.name}"></td>
            <td rowspan="5" align="center">
            	<img alt="" width="80" th:alt="考生照片" th:src="${'http://119.97.236.14:9999/'+student.examId+'.jpg'}" />
            </td>
        </tr>
        <tr>
            <td class="font-bold">出生日期</td>
            <td th:text="${student.birth}"></td>
            <td class="font-bold">性别</td>
            <td th:text="${student.gender == 1?'男':'女'}"></td>
            <td class="font-bold">学籍号</td>
            <td th:text="${student.stuID}"></td>
        </tr>
        <tr>
            <td class="font-bold">民族</td>
            <td colspan="3" th:text="${student.nation.name}"></td>
            <td class="font-bold">政治面貌</td>
            <td th:text="${student.polity.name}"></td>
            
        </tr>
        <tr>
            <td class="font-bold">考生类别</td>
            <td colspan="3" th:text="${student.stuType.name}"></td>
            <td class="font-bold">考试类型</td>
            <td th:text="${student.examType.name}"></td>
            
        </tr>
         <tr>
            <td class="font-bold">身份证号</td>
            <td colspan="5" th:text="${student.certino}"></td>
            
        </tr>
        <tr>
            <td class="font-bold">考何种外语</td>
            <td colspan="2" th:text="${student.foreign.name}"></td>
            <td class="font-bold">毕业类型</td>
            <td colspan="3" th:text="${student.graduation.name}"></td>
            
        </tr>
        <tr>
            <td class="font-bold">毕业中学</td>
            <td colspan="3" th:text="${student.gradeSchool.name}"></td>
            <td class="font-bold">班级</td>
            <td colspan="2" th:text="${student.schoolClass.name}"></td>
            
        </tr>
        <tr>
            <td class="font-bold">户口所在地</td>
            <td colspan="3" ><span th:text="${student.censusProv.name}"></span><span th:if="${student.censusProv.id == 42}" th:text="${student.censusCity.name}"></span><span th:if="${student.censusProv.id == 42}" th:text="${student.censusRegion.name}"></span></td>
            <td class="font-bold"><span th:if="${student.examType.id == 1}">英语口语</span></td>
            <td colspan="2" ><span th:if="${student.examType.id == 1}" th:text="${student.spokenType.name}"></span></td>
            
        </tr>
        <tr>
            
            
            <td class="font-bold">邮政编码</td>
            <td colspan="2" th:text="${student.zipcode}"></td>
            <td class="font-bold">收件人</td>
            <td colspan="3" th:text="${student.receive}"></td>
        </tr>
        <tr>
        	<td class="font-bold">收件人地址</td>
            <td colspan="6" th:text="${student.address}"></td>
        </tr>
        <tr>
        <td class="font-bold" rowspan="5">本人简历
        </td>
        </tr>
        <tr class="font-bold">
            <td>自何年何月</td>
            <td>至何年何月</td>
            <td colspan="2">在何地何单位学习或工作</td>
            <td>任何职务</td>
            <td>证明人</td>
        </tr>
        <tr th:each="item:${student.edu}">
            <td><span th:text="${item.start}"></span><span th:if="${item.start != null}">年9月</span>&nbsp;
            </td>
            <td><span th:text="${item.end}"></span><span th:if="${item.end != null}">年6月</span></td>
            <td colspan="2" th:text="${item.school}"></td>
            <td th:text="${item.post}"></td>
            <td th:text="${item.witness}"></td>
        </tr>
         <tr>
            <td class="font-bold">有何特长</td>
            <td colspan="3" th:text="${student.special}"></td>
            <td colspan="2" class="font-bold">现阶段班主任或负责人</td>
            <td th:text="${student.teacher}"></td>
        </tr>
        <tr>
            <td class="font-bold">高中阶段以来受过何种奖励或处分</td>
            <td colspan="6" th:text="${student.honor}"></td>
        </tr>
        <tr>
        <td class="font-bold" rowspan="4">家庭主要成员
        </td>
        </tr>
        <tr class="font-bold">
            <td>关系</td>
            <td>姓名</td>
            <td>政治面貌</td>
            <td colspan="2">工作单位</td>
            <td>任何职务</td>
        </tr>
        <tr th:each="item:${student.family}">
            <td><span th:text="${item.relation}"></span>&nbsp;</td>
            <td th:text="${item.name}"></td>
            <td th:text="${item.polity}"></td>
            <td colspan="2" th:text="${item.company}"></td>
            <td th:text="${item.post}"></td>
        </tr>
    </tbody>
    <tfoot>
    	<tr>
    		<td colspan="7" style="text-align: center">【请考生认真核对自己的姓名、身份证号、学籍号等基本信息，确保准确无误】</td>
    	</tr>
    </tfoot>
</table>		
	
</body>
</html>
